Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor ConfigurationContentReader #30139

Merged
merged 2 commits into from
Feb 16, 2024
Merged

Refactor ConfigurationContentReader #30139

merged 2 commits into from
Feb 16, 2024

Conversation

terrymanu
Copy link
Member

No description provided.

@TeslaCN TeslaCN merged commit 8342977 into apache:master Feb 16, 2024
139 checks passed
@terrymanu terrymanu deleted the dev branch February 16, 2024 05:23
Comment on lines +42 to +44
@SneakyThrows(URISyntaxException.class)
private File getResourceFile(final String configurationSubject) {
return new File(Objects.requireNonNull(Thread.currentThread().getContextClassLoader().getResource(configurationSubject)).toURI().getPath());
Copy link
Member

@linghengqian linghengqian Feb 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caused by: java.nio.file.NoSuchFileException: /test-native/yaml/modes/cluster/zookeeper.yaml
        at [email protected]/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:261)
        at [email protected]/java.nio.file.Files.newByteChannel(Files.java:379)
        at [email protected]/java.nio.file.Files.newByteChannel(Files.java:431)
        at [email protected]/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
        at [email protected]/java.nio.file.Files.newInputStream(Files.java:159)
        at [email protected]/java.nio.file.Files.newBufferedReader(Files.java:2897)
        at [email protected]/java.nio.file.Files.readAllLines(Files.java:3392)
        at [email protected]/java.nio.file.Files.readAllLines(Files.java:3433)
        at org.apache.shardingsphere.driver.jdbc.core.driver.url.type.ClassPathURLLoader.load(ClassPathURLLoader.java:39)
        at org.apache.shardingsphere.driver.jdbc.core.driver.url.ShardingSphereURLLoadEngine.loadContent(ShardingSphereURLLoadEngine.java:47)
        at org.apache.shardingsphere.driver.jdbc.core.driver.DriverDataSourceCache.createDataSource(DriverDataSourceCache.java:55)
        ... 77 common frames omitted

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants